home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-01 / lcppb.zip / LCPPANS.ZIP / CBLANKS.CPP < prev    next >
C/C++ Source or Header  |  1991-07-08  |  549b  |  25 lines

  1. // cblanks.cpp -- Insert blanks into character strings
  2.  
  3. #include <iostream.h>
  4.  
  5. main()
  6. {
  7.   char original[129];
  8.  
  9.   cout << "Enter a string (no blanks): ";
  10.   cin >> original;
  11.  
  12.   cout << "Original string : " << original;
  13.   cout << "\nWith blanks    : ";
  14.   for (int i = 0; original[i] != 0; i++)
  15.     cout << original[i] << ' ';
  16. }
  17.  
  18.  
  19. // Copyright (c) 1990 by Tom Swan. All rights reserved
  20. // Revision 1.00    Date: 10/24/1990   Time: 09:16 am
  21.  
  22. // Revision 1.01    Date: 07/08/1991   Time: 05:41 pm
  23. // Converted for Borland C++ 2.0
  24.  
  25.